<!doctype html>
<html lang="en"xmlns:th="http://www.thymeleaf.org">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" th:href="@{/favicon.ico}">

    <title>登录</title>

    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">
    <link th:href="@{/css/signin.css}" rel="stylesheet">
  </head>

  <body class="text-center">
    <form class="form-signin" th:action="@{/user/login}">

      <h1>员工管理系统</h1>
      <p></p>
      <h1 class="h3 mb-3 font-weight-normal">请登录</h1>

      <p style="color: red" th:text="${msg}" th:if="${not #strings.isEmpty(msg)}"></p>
      <input type="text" name="username" class="form-control" placeholder="用户名" required autofocus>
      <input type="password" name="password" class="form-control" placeholder="密码" required="">
      <div class="checkbox mb-3">
        <label>
          <input type="checkbox" value="remember-me">记住我
        </label>
      </div>
      <button class="btn btn-lg btn-primary btn-block" type="submit">登录</button>
      <p class="mt-5 mb-3 text-muted">&copy; 2017-2018</p>
    </form>
  </body>
</html>
